aspxDelphi.net WebC ontrol Library
The library currently has four Web controls: "Emoticon", "ColorSelector", "DateSelector" and "AutoPostback"
- Emoticon shows how to embed images and scripts directly into the assembly, then extract the resources when needed, on the fly, using IHttpHandler implementation. Use it to enable a user to pick its mood by presenting various "smiley" images.
- DateSelector renders as three DropDownList components (one to display Day, Month and Year). It raises an event when the Date selected has changed. Has two (additional) properties: Day and YearSpan. The code uses composition and shows how to override the CreateChildControl method and how to code a simple "composite control" designer.
- ColorSelector represents a drop down list that lets users select a Color value (renderingused to construct the control).
- AutoPostback is a TTimer like control. It generates a postback (and a "Postback" event) when an amount of milliseconds (interval property) has passed after the Web Form was loaded in the client browser. Provides a great introduction to using JavaScript in web controls..
Note 1: Take a look at the <httpHandlers> section in the web.config file of the test application. To be able to run custom HTTP handlers (Emoticon control), an entry must me added to the web.config.
Note2: The library also includes one more control: "RadioButtonListItemAttributes" an extension to the standard RadioButtonList control with the ability to render any attributes specified for the items of the RadioButtonList.
Developed by:
Zarko Gajic
http://www.aspxdelphi.net
http://delphi.about.com